#include<stdio.h>main(){char str[20]="how are you?";puts(str);}

来源:百度知道 编辑:UC知道 时间:2024/06/14 17:56:50
#include<stdio.h>
main()
{char str[20]="how are you?";
puts(str);
}
我的水平有限,见笑
运行结果是多少,我对C语言不通,求助

标准写法应该是

#include<stdio.h>

int main()
{
char str[20]="how are you?";
puts(str);

return 0;
}

输出字符串 “how are you?”

puts(str);
需要文件头#include<string.h>
运行的就是how are you?

puts(str);
就是输出整个字符串

main() 的类型没有

这个程序怎么了?没什么问题啊

是正确的